package main

import (
	"github.com/gin-gonic/gin"
	log "github.com/sirupsen/logrus"
	"gitee.com/xiaofengfeng123/srv-paper-tape/api"
	"gitee.com/xiaofengfeng123/srv-paper-tape/api/token"
	"gitee.com/xiaofengfeng123/srv-paper-tape/database"
	"os"
)

func main() {
	log.SetOutput(os.Stdout)
	log.SetReportCaller(true)



	database.InitDb()

	token.Init()

	g := gin.Default()
	api.Init(g)
	g.Run()
}